<?php
$this->breadcrumbs=array(
	'Hospitals'=>array('index'),
	'Create',
);

$this->menu=array(
	array('label'=>'List Hospital', 'url'=>array('index')),
	array('label'=>'Manage Hospital', 'url'=>array('admin')),
);
?>

<h1>Create Hospital</h1>

<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>

<div class="view">
    
    
    
    
    <?php
    
Yii::import('ext.jquery-gmap.*');
//echo $saludo;
$gmap = new EGmap3Widget();
$gmap->setSize(600, 400);

// base options
$options = array(
	'scaleControl' => true,
	'streetViewControl' => false,
	'zoom' => 10,
	'center' => array(0, 0),
	'mapTypeId' => EGmap3MapTypeId::ROADMAP,
	'mapTypeControlOptions' => array(
		'style' => EGmap3MapTypeControlStyle::DROPDOWN_MENU,
		'position' => EGmap3ControlPosition::TOP_RIGHT,
	),
	'zoomControlOptions' => array(
		'style' => EGmap3ZoomControlStyle::LARGE,
		'position' => EGmap3ControlPosition::BOTTOM_LEFT
	),
);
$gmap->setOptions($options);
//$options->mapTypeId = EGmap3MapTypeId::TERRAIN;









 $marker=new EGmap3Marker(array(
            'title'=>'Registrar',
            'draggable'=>true,
          ));
          $marker->latLng=array(-12.069123471020955,-77.0606765039063);
    //for capturing teh coordinates
        
          $marker->capturePosition(
            $model,
            'x',                           
            'y',
            array('visible','drag'));

 
 $marker->centerOnMap();
$marker->setMapZoom(11);
$gmap->add($marker);


$gmap->renderMap();
 ?>
</div>